package com.ymatou.iapi.shoppingcart.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;

import com.ymatou.iapi.shoppingcart.parameter.GetTotalPriceBean;
import com.ymatou.iapi.shoppingcart.service.GetTotalPriceCall;
import com.ymt.core.tool.Logger;
import com.ymttest.utils.EnvSetup;

public class Ts_GetTotalPrice {
	
	private static GetTotalPriceBean getTotalPriceBean;
	private static GetTotalPriceCall getTotalPriceCall;
	
	private static int sellerId = Integer.parseInt(EnvSetup.getData("zhangyi_seller002_id"));
	private static String sellerName = EnvSetup.getData("zhangyi_seller002_name");
	
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取购物车商品总价");
	}

	@Before
	public void caseUp() throws Exception {
		getTotalPriceBean = new GetTotalPriceBean();
		getTotalPriceCall = new GetTotalPriceCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(getTotalPriceCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
}
